package lab01;

public class Test05 {
    public static void main(String[] args) {
        int c=1,sum=0;
        for(c=1;c<=100;c++){
            sum+=c;

        }
        System.out.println(sum);

        int d=1;sum=0;
        while (d<=100){
            sum+=d;
            d++;
        }
        System.out.println(sum);


        int e=1;sum=0;
        do {
            sum+=e;
            e++;
        }
        while (e<=100);
        System.out.println(sum);
    }
}
